package Controler;

import java.util.ArrayList;

import Client.BusinessImplements;

public class Extend_Item_Panel_Controler {
/**
 * thie method getting the lend history
 * @param userId
 * @return
 */
	public ArrayList<String> getLendHistory(String userId) 
	{
		
		return BusinessImplements.GetInstance().getServerProxy().getLendHistorySProxy(userId);
	}
/**
 * this method asking for permeation for extend for user
 * @param userId
 * @param itemCopyId
 * @return
 */
	public ArrayList<String> userExtendAllowed(String userId, String itemCopyId)
	{
		return BusinessImplements.GetInstance().getServerProxy().userExtendAllowedProxy(userId, itemCopyId);
	}
	/**
	 * this method asking for permeation for extend for librarian
	 * @param userId
	 * @param itemCopyId
	 * @return
	 */
	public ArrayList<String> librerianExtendAllowed(String userId, String itemCopyId)
	{
		return BusinessImplements.GetInstance().getServerProxy().librerianExtendAllowedProxy(userId, itemCopyId);
		 
	}
	/**
	 * this method try to extend item for user
	 * @param userId
	 * @param itemCopyId
	 * @return
	 */
	public ArrayList<String> addNewUserExtend(String userId, String itemCopyId)
	{
		return BusinessImplements.GetInstance().getServerProxy().addNewUserExtendProxy(userId, itemCopyId);
	}
	/**
	 * this method trying to extend item by librarian 
	 * @param userId
	 * @param librerianId
	 * @param itemCopyId
	 * @param date
	 * @return
	 */
	public ArrayList<String> addNewLibrerianExtend(String userId, String librerianId, String itemCopyId, String date)
	{
		return BusinessImplements.GetInstance().getServerProxy().addNewLibrerianExtendProxy(userId, librerianId, itemCopyId, date);
	}
	


}
